/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ig.metrica.ui.matriz.correlacion.calculada.modelo;

import ig.metrica.origenesdedatos.*;
import ig.util.ConexionServer;
import ig.util.ejb.IGBean;
import java.rmi.RemoteException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;

/**
 *
 * @author Jimmy
 */
public class MInicial implements IModeloWizzar {


    public ConexionBean buscarConexion(ConexionPK pk) throws NamingException, Exception {
        ConexionBean conexionBean = new ConexionBean();
        return conexionBean.ejbFindByPrimaryKey(pk);
    }
    private Collection datos=new ArrayList();
    public void clear() {
        datos.clear();
    }
    
    public Collection buscarOrigenesDeDatos() throws NamingException, RemoteException, Exception, SQLException {
        return new OrigenDeDatosBean().findByAllDTO();
    }

    public void setDatos(ArrayList informacion) {
        this.datos.add(informacion);
    }

    public void siguiente() throws Exception {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void finalizar() throws Exception {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void calcelar() throws Exception {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void setObject(Object obj) throws Exception {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public Object getObject() {
        return this.datos;
    }

    public boolean isSiguiente() {
        return true;
    }
    public String getErrores() {
        return null;
    }    
}
